﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="convert.aspx.cs" Inherits="QRL.Convert"
	EnableViewState="false" EnableSessionState="False" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title></title>
</head>
<body>
	<form id="form1" runat="server">
	<div>
		<% if ( String.IsNullOrEmpty( PageUrl ) && String.IsNullOrEmpty(TextToQr) )
		 {%>
		<button id="installAccel" onclick="window.external.AddService('addQRL.xml')">
			Install QRL</button>
		<% }
		 else
		 { %>
		<img style="-webkit-user-select: none" src="https://chart.googleapis.com/chart?chs=<%= ChartSize %>&choe=UTF-8&cht=qr&chld=L|0&chl=<%= TextToQr %>" alt="QR Code"/>
		<br />
		<ul>
			<li>Page Url: <%= Microsoft.Security.Application.Encoder.HtmlEncode( PageUrl )%></li>
			<li>TextToQr: <%= TextToQr %></li>
			<li>TextToQr(enc): <%= Microsoft.Security.Application.Encoder.HtmlEncode( TextToQr )%></li>
		</ul>
		<%} %>
	</div>
	</form>
</body>
</html>
